import { http } from "../utils/http";
import type { IGetCommentListApiResponse } from "./types";

/**
 * 获取评论列表
 */
export const getCommentListApi = (
  page: number,
  limit: number,
  courseId: string
) => {
  return http.get<IGetCommentListApiResponse>(`/edu/comment/${page}/${limit}`, {
    courseId,
  });
};
